/*
   Zii EGGxplorer - A simple Zii file browser

   Copyright (C) 2009 - 2010 Claudio Corti

   Main application file

   DEBUG
   * Transparent pixels not respected while creating error images with CBlitLib
   TODO
   * Write the name of the current directory somewhere
   * Check sys_stat fields before the structure be assigned and try to recover informations even if
     stat or lstat fail
   * Sort files with criteria chosen from the option window
   * Make option window
   * Create plugin for infos about file content (different icon depending on content)
   * Adding icon view (grid)
   --------- Version 2 -----------
   * FileSystemNavigator class, contains PathInfo class; functions: Up (go to parent path), Back (go
     back in the history), Next (go forward in the history)
     FileSystemNavigator create a PathInfo instance from a path, call QueryInfo on that path and
     Next to create two lists of subfolders and subfiles with order decided by a function (provided
     also by plugin).
   * List view and grid view widgets inherit from FileSystemNavigator and list or grid widget
   --------- Version 3 -----------
   * Add landscape view
*/

// Unix standard headers
#include <libgen.h>

// Applications headers
#include "EGGxplorer.h"

// Declare main application entry point as a C function
#ifdef __cplusplus
extern "C" {
#endif

int PlaszmaAppMain(int argc, char **argv)
{
   // Change the current directory to application folder
   if(argv[0]) chdir(dirname(argv[0]));

   // Get the application instance
   EGGxplorer* app = EGGxplorer::GetApplication();
   if (app != NULL)
   {
      // Run the application
      app->Run("claudio.ziieggxplorer.com");
      // Delete the application object when it terminates
      delete app;
   }
   return 0;
}

#ifdef __cplusplus
}
#endif   /* __cplusplus */
